package com.atguigu.spzx.user.client.fallback;

import com.atguigu.spzx.model.entity.user.UserAddress;
import com.atguigu.spzx.model.vo.common.Result;
import com.atguigu.spzx.model.vo.common.ResultCodeEnum;
import com.atguigu.spzx.user.client.UserClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author syh
 * @create 2023-09-04 18:17
 */
@Slf4j
@Component
public class UserClientFallback implements UserClient {
    @Override
    public Result<UserAddress> findUserAddressById(Long id) {
       log.error("根据id查询地址失败，id={}",id);
        return Result.build(null,ResultCodeEnum.UNKNOW_ERROR);
    }
}
